#include "panelwgt.h"
#include <Util/DataFinder.h>

namespace Gui{

    PanelWgt::PanelWgt(QWidget *parent) :
        QWidget(parent)
    {
        layout = new QVBoxLayout(this);
        this->setLayout(layout);

        clockBlack = new DigitalClock(this);
        clockWhite = new DigitalClock(this);
        arrowBlackEnable = new QLabel(this);
        arrowWhiteEnable = new QLabel(this);
        arrowBlackDisable = new QLabel(this);
        arrowWhiteDisable = new QLabel(this);
        arrowBlackEnable->setPixmap(QPixmap(DATA("arrow-up.png")).scaledToHeight(50));
        arrowWhiteEnable->setPixmap(QPixmap(DATA("arrow-down.png")).scaledToHeight(50));
        arrowBlackDisable->setPixmap(QPixmap(DATA("arrow-up-disable.png")).scaledToHeight(50));
        arrowWhiteDisable->setPixmap(QPixmap(DATA("arrow-down-disable.png")).scaledToHeight(50));

        layout->addWidget(clockBlack);
        layout->addWidget(arrowBlackEnable);
        layout->addWidget(arrowBlackDisable);
        layout->addWidget(arrowWhiteDisable);
        layout->addWidget(arrowWhiteEnable);
        layout->addWidget(clockWhite);
        layout->setAlignment(Qt::AlignHCenter);

        arrowBlackEnable->hide();
        arrowWhiteDisable->hide();
    }

}
